<?php
class Admin_Model_TableColumn_Users {
	const DATE_FORMAT_FULL_EN = 'Y-m-d H:i:s';
	const DATE_FORMAT_FULL_VN = 'd-m-Y H:i:s';
	const DATE_FORMAT_SHORT_VN = 'd-m-Y';

	protected $id;
	protected $email;
	protected $password;
	protected $username;
	protected $tai_khoan_chinh;
	protected $tai_khoan_khuyen_mai;
	protected $gioi_tinh;
	protected $ho_ten;
	protected $ngay_sinh;
	protected $dia_chi;
	protected $hinh_anh;
	protected $dien_thoai;
	protected $dang_nhap_cuoi;
	protected $kich_hoat;
	protected $thanh_pho;
	protected $ngay_tao;
	protected $ngay_cap_nhat;
	protected $nguoi_cap_nhat;
	protected $da_xoa;
	protected $ten_thanh_pho;
	protected $ten_nguoi_cap_nhat;
	protected $ngay_kich_hoat;
	protected $diem;

	public function __construct(array $options = null) {
		if (is_array($options)) {
			$this->setOptions($options);
		}
	}
	
	public function __set($name, $value) {
		$method = 'set' . $name;
		
		if (('mapper' == $name) || !method_exists($this, $method)) {
			throw new Exception('Invalid content property');
		}
		
		$this->$method($value);
	}
	
	public function __get($name) {
		$method = 'get' . $name;
		
		if (('mapper' == $name) || !method_exists($this, $method)) {
			throw new Exception('Invalid content property');
		}
		
		return $this->$method();
	}
	
	public function setOptions(array $options) {
		$methods = get_class_methods($this);
		
		foreach ($options as $key => $value) {
			$method = 'set' . ucfirst($key);
			
			if (in_array($method, $methods)) {
				$this->$method($value);
			}
		}
		
		return $this;
	}
	
	public function getId() {
		return $this->id;
	}
	
	public function setId($id) {
		$this->id = $id;
	}
	
	public function getEmail() {
		return $this->email;
	}
	
	public function setEmail($email) {
		$this->email = $email;
	}
	
	public function setPassword($password) {
		$this->password = $password;
	}
	
	public function getPassword() {
		return $this->password;
	}
	
	public function getUsername() {
		return $this->username;
	}
	
	public function setUsername($username) {
		$this->username = $username;
	}
	
	public function getTai_khoan_chinh() {
		return $this->tai_khoan_chinh;
	}
	
	public function setTai_khoan_chinh($value) {
		$this->tai_khoan_chinh = $value;
	}
	
	public function getTai_khoan_khuyen_mai() {
		return $this->tai_khoan_khuyen_mai;
	}
	
	public function setTai_khoan_khuyen_mai($value) {
		$this->tai_khoan_khuyen_mai = $value;
	}
	
	public function getGioi_tinh() {
		return $this->gioi_tinh;
	}
	
	public function setGioi_tinh($value) {
		$this->gioi_tinh = $value;
	}
	
	public function getHo_ten() {
		return $this->ho_ten;
	}
	
	public function setHo_ten($value) {
		$this->ho_ten = $value;
	}

	public function getNgay_sinh() {
		return $this->ngay_sinh;
	}
	
	public function setNgay_sinh($value) {
		$this->ngay_sinh = $value;
	}
	
	public function getDia_chi() {
		return $this->dia_chi;
	}
	
	public function setDia_chi($value) {
		$this->dia_chi = $value;
	}
	
	public function getHinh_anh() {
		return $this->hinh_anh;
	}
	
	public function setHinh_anh($value) {
		$this->hinh_anh = $value;
	}
	
	public function getDien_thoai() {
		return $this->dien_thoai;
	}
	
	public function setDien_thoai($value) {
		$this->dien_thoai = $value;
	}
	
	public function getDang_nhap_cuoi() {
		return $this->dang_nhap_cuoi;
	}
	public function setDang_nhap_cuoi($value) {
		$this->dang_nhap_cuoi = $value;
	}
	
	public function getKich_hoat() {
		return $this->kich_hoat;
	}
	public function setKich_hoat($value) {
		$this->kich_hoat = $value;
	}
	
	public function getThanh_pho() {
		return $this->thanh_pho;
	}
	public function setThanh_pho($value) {
		$this->thanh_pho = $value;
	}
	
	public function getNgay_tao() {
		return $this->ngay_tao;
	}
	
	public function setNgay_tao($value) {
		$this->ngay_tao = $value;
	}
	
	public function getNgay_cap_nhat() {
		return $this->ngay_cap_nhat;
	}
	
	public function setNgay_cap_nhat($value) {
		$this->ngay_cap_nhat = $value;
	}
	
	public function getNguoi_cap_nhat() {
		return $this->nguoi_cap_nhat;
	}
	
	public function setNguoi_cap_nhat($value) {
		$this->nguoi_cap_nhat = $value;
	}
	
	public function getDa_xoa() {
		return $this->da_xoa;
	}
	
	public function setDa_xoa($value) {
		$this->da_xoa = $value;
	}
	
	public function getTen_thanh_pho() {
		return $this->ten_thanh_pho;
	}
	
	public function setTen_thanh_pho($value) {
		$this->ten_thanh_pho = $value;
	}
	
	public function getTen_nguoi_cap_nhat() {
		return $this->ten_nguoi_cap_nhat;
	}
	
	public function setTen_nguoi_cap_nhat($ten_nguoi_cap_nhat) {
		$this->ten_nguoi_cap_nhat = $ten_nguoi_cap_nhat;
	}
	
	public function getNgay_kich_hoat() {
		return $this->ngay_kich_hoat;
	}
	
	public function setNgay_kich_hoat($value) {
		$this->ngay_kich_hoat = $value;
	}
	
	public function getDiem() {
		return $this->diem;
	}
	
	public function setDiem($value) {
		$this->diem = $value;
	}

}